import TopNav from "@/components/TopNav/index.vue"
// import MainNav from "@/components/MainNav"
export default {
  components: {
    TopNav
    // MainNav
  },
  data() {
    return {
      // formData: {
      //   username: "",
      //   password: ""
      // }
    }
  },
  created() {
    console.log(process.env)
    console.log(this.$route.query)
    if (this.$route.query.ACCESSTOKEN) {
      console.log(this.$route.query.ACCESSTOKEN)
    } else {
      // location.href = process.env.VUE_APP_LOGIN_URL
    }
  },
  methods: {
    getUserInfo() {
      this.$store.dispatch("user/GetUserInfo")
    },
    onSubmit() {
      location.href = process.env.VUE_APP_LOGIN_URL //"http://192.168.0.125:8810/educloud/login"
    }
  }
}
